/**
 * xdemo.org
 */
package org.xdemo.site.biz.portal.demo.service;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.xdemo.site.biz.portal.profile.bean.Account;

/**
 * @作者 Goofy
 * @邮件 252878950@qq.com
 * @日期 2014-1-12
 * @描述 
 */
@Service
@Transactional
public class DemoServiceBean implements IDemoService{
	
	@Resource SessionFactory session;
	

	/* (non-Javadoc)
	 * @see org.xdemo.site.system.base.IService#save(java.lang.Object)
	 */
	@Override
	public void save() {
		Account a=new Account();
		a.setMailAddress("252878950@qq.com");
		a.setPassword("fdsafdsafdsafdsa");
		session.getCurrentSession().save(a);
	}

}
